# 用户发表文章
# 创建用户对象

from user_2.models import User
# from .models import User # 当前目录下的models.py文件中的User类
from article_2.models import Article

user = User('admin', '123456') # -->user就是通过导入User类创建的对象

# 发表文章，文章对象
article = Article('python入门', '张三')
user.publish_article(article) # -->user对象调用publish_article方法，参数是article对象

list1 = [1, 3, 5, 7, 9]
from calculate_1 import add

result = add(*list1)
print(result)

MAX = 1000


